home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Technotools
/
Technotools (Chestnut CD-ROM)(1993).ISO
/
lang_oth
/
mawk10
/
vsmall.bat
< prev
next >
Wrap
DOS Batch File
|
1991-10-05
|
4KB
|
132 lines
echo off
rem batch file to make small model mawk
rem with a unix command line
rem using TurboC++ (should work with any Borland C)
rem
rem change LIB on the tlink command
rem to the appropriate directory on your system
rem
rem you have to provide reargv.c
echo copy config\tcc_dos.h config.h
copy config\tcc_dos.h config.h
tcc -c -ms -f -K -d -G -v- -O -DHAVE_REARGV=1 reargv.c
if errorlevel 1 goto ERR
tcc -c -ms -f -K -d -G -v- -O -DHAVE_REARGV=1 parse.c
if errorlevel 1 goto ERR
tcc -c -ms -f -K -d -G -v- -O -DHAVE_REARGV=1 array.c
if errorlevel 1 goto ERR
tcc -c -ms -f -K -d -G -v- -O -DHAVE_REARGV=1 bi_funct.c
if errorlevel 1 goto ERR
tcc -c -ms -f -K -d -G -v- -O -DHAVE_REARGV=1 bi_vars.c
if errorlevel 1 goto ERR
tcc -c -ms -f -K -d -G -v- -O -DHAVE_REARGV=1 cast.c
if errorlevel 1 goto ERR
tcc -c -ms -f -K -d -G -v- -O -DHAVE_REARGV=1 code.c
if errorlevel 1 goto ERR
tcc -c -ms -f -K -d -G -v- -O -DHAVE_REARGV=1 da.c
if errorlevel 1 goto ERR
tcc -c -ms -f -K -d -G -v- -O -DHAVE_REARGV=1 error.c
if errorlevel 1 goto ERR
tcc -c -ms -f -K -d -G -v- -O -DHAVE_REARGV=1 execute.c
if errorlevel 1 goto ERR
tcc -c -ms -f -K -d -G -v- -O -DHAVE_REARGV=1 fcall.c
if errorlevel 1 goto ERR
tcc -c -ms -f -K -d -G -v- -O -DHAVE_REARGV=1 field.c
if errorlevel 1 goto ERR
tcc -c -ms -f -K -d -G -v- -O -DHAVE_REARGV=1 files.c
if errorlevel 1 goto ERR
tcc -c -ms -f -K -d -G -v- -O -DHAVE_REARGV=1 fin.c
if errorlevel 1 goto ERR
tcc -c -ms -f -K -d -G -v- -O -DHAVE_REARGV=1 hash.c
if errorlevel 1 goto ERR
tcc -c -ms -f -K -d -G -v- -O -DHAVE_REARGV=1 init.c
if errorlevel 1 goto ERR
tcc -c -ms -f -K -d -G -v- -O -DHAVE_REARGV=1 jmp.c
if errorlevel 1 goto ERR
tcc -c -ms -f -K -d -G -v- -O -DHAVE_REARGV=1 kw.c
if errorlevel 1 goto ERR
tcc -c -ms -f -K -d -G -v- -O -DHAVE_REARGV=1 main.c
if errorlevel 1 goto ERR
tcc -c -ms -f -K -d -G -v- -O -DHAVE_REARGV=1 matherr.c
if errorlevel 1 goto ERR
tcc -c -ms -f -K -d -G -v- -O -DHAVE_REARGV=1 memory.c
if errorlevel 1 goto ERR
tcc -c -ms -f -K -d -G -v- -O -DHAVE_REARGV=1 print.c
if errorlevel 1 goto ERR
tcc -c -ms -f -K -d -G -v- -O -DHAVE_REARGV=1 re_cmpl.c
if errorlevel 1 goto ERR
tcc -c -ms -f -K -d -G -v- -O -DHAVE_REARGV=1 scan.c
if errorlevel 1 goto ERR
tcc -c -ms -f -K -d -G -v- -O -DHAVE_REARGV=1 scancode.c
if errorlevel 1 goto ERR
tcc -c -ms -f -K -d -G -v- -O -DHAVE_REARGV=1 split.c
if errorlevel 1 goto ERR
tcc -c -ms -f -K -d -G -v- -O -DHAVE_REARGV=1 zmalloc.c
if errorlevel 1 goto ERR
tcc -c -ms -f -K -d -G -v- -O -DHAVE_REARGV=1 version.c
if errorlevel 1 goto ERR
tcc -c -ms -f -K -d -G -v- -O -DMAWK -Irexp rexp\rexp.c
if errorlevel 1 goto ERR
tcc -c -ms -f -K -d -G -v- -O -DMAWK -Irexp rexp\rexp0.c
if errorlevel 1 goto ERR
tcc -c -ms -f -K -d -G -v- -O -DMAWK -Irexp rexp\rexp1.c
if errorlevel 1 goto ERR
tcc -c -ms -f -K -d -G -v- -O -DMAWK -Irexp rexp\rexp2.c
if errorlevel 1 goto ERR
tcc -c -ms -f -K -d -G -v- -O -DMAWK -Irexp rexp\rexp3.c
if errorlevel 1 goto ERR
tcc -c -ms -f -K -d -G -v- -O -DMAWK -Irexp rexp\rexpdb.c
if errorlevel 1 goto ERR
tlink /c/x \LIB\c0s \LIB\wildargs reargv @msdos\OBJS_TCC.LNK,mawk,,\LIB\emu \LIB\maths \LIB\cs
if errorlevel 1 goto LINKERR
echo If you want to test mawk.exe, then
echo copy all files in msdos\dostest to mawk\test
echo copy mawk.exe to mawk\test
echo and run mawk_tes.bat and fpe_test.bat
goto done
:ERR
echo compile error
goto done
:LINKERR
echo link error
:done